//package com.zmn.plat.dubbo.impl.price.meter3;
//
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.manager.common.database.annotation.ReadOnlyConnection;
//import com.zmn.plat.business.interfaces.price.meter3.MeterFlow3ItemBService;
//import com.zmn.plat.common.dto.price.meter3.*;
//import com.zmn.plat.common.exception.PlatException;
//import com.zmn.plat.dubbo.interfaces.price.meter3.MeterFlow3ItemRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.dubbo.config.annotation.Service;
//
//import javax.annotation.Resource;
//import javax.validation.constraints.NotNull;
//import java.util.List;
//
///**
// * 描述: 计价器3.0服务项价格实现类
// *
// * @author guoqiao
// * @since 2021/11/24 10:56
// */
//@Service(version = DubboConsts.INTERFACE_VERSION, validation = "true")
//@Slf4j
//public class MeterFlow3ItemRemoteServiceImpl implements MeterFlow3ItemRemoteService {
//
//    @Resource
//    MeterFlow3ItemBService meterFlow3ItemBService;
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<ItemDRO3> getDoorFeeByQuery(MeterBaseQuery3 query) {
//        log.info("MeterFlow3ItemRemoteServiceImpl.getDoorFeeByQuery：{}", query);
//        try {
//            ItemDRO3 dro = meterFlow3ItemBService.getDoorFeeByQuery(query);
//            return ResponseDTO.success(dro);
//        } catch (PlatException e) {
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("getDoorFeeByQuery查询失败,原因:{}", e.getMessage(), e);
//            return ResponseDTO.fail("查询失败，程序异常");
//        }
//    }
//
//    @Override
//    public ResponseDTO<ItemDRO3> getMinItemPriceByQuery(ItemPriceQuery3 query) {
//        log.info("MeterFlow3ItemRemoteServiceImpl.getMinItemPriceByQuery：{}", query);
//        try {
//            ItemDRO3 dro = meterFlow3ItemBService.getMinItemPriceByQuery(query);
//            return ResponseDTO.success(dro);
//        } catch (PlatException e) {
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("getMinItemPriceByQuery查询失败,原因:{}", e.getMessage(), e);
//            return ResponseDTO.fail("查询失败，程序异常");
//        }
//    }
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<List<ItemDRO3>> listItemByQuery(ItemPriceQuery3 query) {
//        log.info("MeterFlow3ItemRemoteServiceImpl.listItemByQuery：{}", query);
//        try {
//            List<ItemDRO3> dros = meterFlow3ItemBService.listItemByQuery(query);
//            return ResponseDTO.success(dros);
//        } catch (PlatException e) {
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("listItemPriceTransByQuery查询失败,原因:{}", e.getMessage(), e);
//            return ResponseDTO.fail("查询失败，程序异常");
//        }
//    }
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<List<ItemDRO3>> listItemByFaultIdList(@NotNull(message = "入参不能为空") MeterItemQuery3 query) {
//        log.info("MeterFlow3ItemRemoteServiceImpl.listItemByFaultIdList：{}", query);
//        try {
//            List<ItemDRO3> dros = meterFlow3ItemBService.listItemByFaultIdList(query);
//            return ResponseDTO.success(dros);
//        } catch (PlatException e) {
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("listItemByFaultIdList查询失败,原因:{}", e.getMessage(), e);
//            return ResponseDTO.fail("查询失败，程序异常");
//        }
//    }
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<List<ItemDRO3>> listItemQuoteByQuery(@NotNull(message = "入参不能为空") MeterQuoteQuery3 query) {
//        log.info("MeterFlow3ItemRemoteServiceImpl.listItemQuoteByQuery：{}", query);
//        try {
//            List<ItemDRO3> dros = meterFlow3ItemBService.listItemQuoteByQuery(query);
//            return ResponseDTO.success(dros);
//        } catch (PlatException e) {
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("listItemQuoteByQuery查询失败,原因:{}", e.getMessage(), e);
//            return ResponseDTO.fail("查询失败，程序异常");
//        }
//    }
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<List<ItemDRO3>> listItemPriceByQuery(ItemPriceQuery3 query) {
//        log.info("MeterFlow3ItemRemoteServiceImpl.listItemPriceByQuery：{}", query);
//        try {
//            List<ItemDRO3> dros = meterFlow3ItemBService.listItemPriceByQuery(query);
//            return ResponseDTO.success(dros);
//        } catch (PlatException e) {
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("listItemPriceByQuery查询失败,原因:{}", e.getMessage(), e);
//            return ResponseDTO.fail("查询失败，程序异常");
//        }
//    }
//
//    @Override
//    @ReadOnlyConnection
//    public ResponseDTO<List<ItemDRO3>> listItemPriceTransByQuery(@NotNull(message = "入参不能为空") ItemPriceQuery3 query) {
//        log.info("MeterFlow3ItemRemoteServiceImpl.listItemPriceTransByQuery：{}", query);
//        try {
//            List<ItemDRO3> dros = meterFlow3ItemBService.listItemPriceTransByQuery(query);
//            return ResponseDTO.success(dros);
//        } catch (PlatException e) {
//            return ResponseDTO.fromErrorCodeTable(e.getErrorCode());
//        } catch (Exception e) {
//            log.error("listItemPriceTransByQuery查询失败,原因:{}", e.getMessage(), e);
//            return ResponseDTO.fail("查询失败，程序异常");
//        }
//    }
//
//
//}
